summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-09-29 06:01:18 +0200
committerGitHub <noreply@github.com>2023-09-29 06:01:18 +0200
commit926e24c642ab0d44661339b191934a59da736db2 (patch)
treec4cbc864202ba5013a09964a7abbf8e918cf5fc6
parentMerge pull request #11631 from Kelebek1/double_focus_change (diff)
parentrenderer_vulkan: fix query cache for homebrew (diff)
downloadyuzu-926e24c642ab0d44661339b191934a59da736db2.tar
yuzu-926e24c642ab0d44661339b191934a59da736db2.tar.gz
yuzu-926e24c642ab0d44661339b191934a59da736db2.tar.bz2
yuzu-926e24c642ab0d44661339b191934a59da736db2.tar.lz
yuzu-926e24c642ab0d44661339b191934a59da736db2.tar.xz
yuzu-926e24c642ab0d44661339b191934a59da736db2.tar.zst
yuzu-926e24c642ab0d44661339b191934a59da736db2.zip
-rw-r--r--src/video_core/renderer_vulkan/vk_query_cache.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp
index a32da3ba3..17b2587ad 100644
--- a/src/video_core/renderer_vulkan/vk_query_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp
@@ -1160,7 +1160,7 @@ struct QueryCacheRuntimeImpl {
cpu_memory_),
primitives_needed_minus_suceeded_streamer(
static_cast<size_t>(QueryType::StreamingPrimitivesNeededMinusSucceeded), runtime, 0u),
- hcr_setup{}, hcr_is_set{}, is_hcr_running{} {
+ hcr_setup{}, hcr_is_set{}, is_hcr_running{}, maxwell3d{} {
hcr_setup.sType = VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT;
hcr_setup.pNext = nullptr;
@@ -1235,7 +1235,9 @@ void QueryCacheRuntime::Bind3DEngine(Maxwell3D* maxwell3d) {
template <typename Func>
void QueryCacheRuntime::View3DRegs(Func&& func) {
- func(*impl->maxwell3d);
+ if (impl->maxwell3d) {
+ func(*impl->maxwell3d);
+ }
}
void QueryCacheRuntime::EndHostConditionalRendering() {